/*
 * @(#)ShangjiaDao.java 2011-12-20
 *
 * Copyright 2011 北龙中网（北京）科技有限责任公司. All rights reserved.
 */
package cn.shangjia.shop.dao.common;

import java.util.Map;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import cn.shangjia.common.domain.SiteSetting;

/**
 * 来自商家网的公共查询
 * 
 * @author <a href="mailto:jinzhongze@knet.cn">jinzhongze</a>
 * @version 1.0, 2011-12-20 17:44:22
 * @since 1.0
 */
@Repository
public class ShangjiaDao extends SqlSessionDaoSupport implements ICommonDao{
	
	/**
	 *  获取用户分类映射map
	 * 
	 * @return
	 * @author <a href="mailto:jinzhongze@knet.cn">jinzhongze</a>
	 */
	@SuppressWarnings("unchecked")
	public Map<String, Map<String, String>> getSstGbtMap() {
		return getSqlSession().selectMap(NAME_SPACE + ".getSstGbtMap", "ID");
	}
	
	/**
	 *  获取商家网系统设置
	 * 
	 * @return
	 * @author <a href="mailto:jinzhongze@knet.cn">jinzhongze</a>
	 */
	public SiteSetting getSiteSetting() {
		return (SiteSetting) getSqlSession().selectOne(NAME_SPACE + ".getSiteSetting");
	}
	
}
